<?php

use think\facade\Route;

//短视频后端路由
Route::group('admin', function () {
    Route::get('config','Admin/config');
    Route::get('discount','Admin/discount');

    Route::get('company','Admin/company'); #获取公司列表
    //短视频管理相关
    Route::get('video/list', 'Admin/index');
    Route::post('video/add','Admin/addvideo'); #添加视频
    Route::post('video/update','Admin/updateVideo'); #修改短视频数据
    Route::post('video/status','Admin/videoStatus'); #修改短视频展示状态

    //数据管理部分
    Route::get('initial_time','AdminCount/initial_time'); //数据起始时间
    Route::get('count/video','AdminCount/video'); #某段视频的数据
    Route::get('count/all','AdminCount/allcout'); #总数据 --
    Route::get('count/day_list','AdminCount/count_list'); #按天获取统计数据
    Route::get('count/table','AdminCount/count_table'); #统计图表数据获取
    Route::post('count/user_list','AdminCount/userList');

    //列表数据获取
    Route::post('redbag/activeList','ActiveList/redbagList');
    Route::post('passenger/activeList','ActiveList/passengerList');
    Route::post('reduction/activeList','ActiveList/reductionList');

});

//短视频前端api
Route::group('index', function () {
    //获客排行
    Route::any('visitorsTop','IndexVideo/visitorsTop');
    //员工端视频数据视频列表
    Route::any('videoDataList','IndexVideo/videoDataList');
    //员工端视频数据
    Route::any('videoData','IndexVideo/videoData');
    //员工端获客排行
    Route::any('visitorsTop','IndexVideo/visitorsTop');
    //员工端我端数据
    Route::any('staffVideoData','IndexVideo/staffVideoData');
    //首页视频列表
    Route::any('videoList','IndexVideo/videoList');
    //单个视频数据统计
    Route::any('singeVideoData','IndexVideo/singeVideoData');
    //我的数据记录
    Route::any('staffVideoList','IndexVideo/staffVideoList');
    //浏览记录添加
    Route::any('browseAdd','IndexVideo/browseAdd');
    //修改时长
    Route::any('updateBrowseTime','IndexVideo/updateBrowseTime');
    //添加获客记录
    Route::any('visitorsAdd','IndexVideo/visitorsAdd');
    //员工排行详情
    Route::any('staffTopInfo','IndexVideo/staffTopInfo');
    //我的数据统计详情
    Route::any('staffVisitorsList','IndexVideo/staffVisitorsList');
    //上报雷达
    Route::any('addVideoRadar','IndexVideo/addVideoRadar');

    Route::any('getQr','IndexVideo/getQr');


});





















